-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MNT/TST: Update SWAPI packet definition and tests #803
base: dev
Are you sure you want to change the base?
MNT/TST: Update SWAPI packet definition and tests #803
Conversation
This removes some unnecessary utils functions and moves over to packet_file_to_datasets()
|
||
|
||
@pytest.fixture(scope="session") | ||
def decom_test_science_data(swapi_l0_test_data_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is interesting that they gave you "derived_values" for the science data, but didn't use any "derived_values" for the housekeeping. That is why we have these two different fixtures here now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. That's why I had to add if and else in test but your approach is much better.
The failing tests are due to an issue upstream with space_packet_parser that has already been fixed, but not released yet. medley56/space_packet_parser#54 I'm not sure there is much we can do about this until the fix is out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you again!
|
||
|
||
@pytest.fixture(scope="session") | ||
def decom_test_science_data(swapi_l0_test_data_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. That's why I had to add if and else in test but your approach is much better.
Converting to draft since this requires changes to Space Packet Parser that will be released in the next version. Need to revisit this then when we upgrade that dependency version. |
This removes some unnecessary utils functions and moves over to
packet_file_to_datasets()
Note that updating the packet definition also changed the
plan_id_science
back toplan_id
which was in the original spreadsheet definition. This is because they can now have different bit lengths between the packets.The packet definition also does not have the
AUT
packet defined in it anymore, do we want to add that one to the definition, or leave it out? I left it out for now and just removed that test.